package in.zapr.druid.druidry;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class TimeseriesContext extends Context{
    private Boolean  skipEmptyBuckets;


    public TimeseriesContext(Boolean skipEmptyBuckets) {
        super(null,null,null,null,null,null,null,null,null,null,null,null);
        this.skipEmptyBuckets = skipEmptyBuckets;
    }

    public TimeseriesContext(Integer timeoutInMilliSeconds, Integer priority, String queryId, Boolean useCache, Boolean populateCache, Boolean bySegment, Boolean finalize, String chunkPeriod, Integer minTopNThreshold, Integer maxResults, Integer maxIntermediateRows, Boolean groupByIsSingleThreaded,Boolean skipEmptyBuckets) {
        super(timeoutInMilliSeconds, priority, queryId, useCache, populateCache, bySegment, finalize, chunkPeriod, minTopNThreshold, maxResults, maxIntermediateRows, groupByIsSingleThreaded);
        this.skipEmptyBuckets = skipEmptyBuckets;
    }

    public Boolean getSkipEmptyBuckets() {
        return skipEmptyBuckets;
    }

    public void setSkipEmptyBuckets(Boolean skipEmptyBuckets) {
        this.skipEmptyBuckets = skipEmptyBuckets;
    }
}
